/**
 * @ author: 汪孟苹
 */
define(["jquery",
    "scprit/followup/app/surveyStageAssess/surveyStageRecord.servers.js",
    "scprit/followup/app/question/question.ui.js",
    "scprit/followup/app/question/question.event.js"],
    function ($,$surveyStageRecordServers,$questionUi,$questionEvent) {
    var surveyStageQuest = {};

    /**
     * 请求问卷成功后的回调函数
     */
    var ajaxQuestCallBack = function(data,params){
        $questionUi.init({
            id: params.domId,
            list: data.quesInfo,
            showIcon: true,
            values:data.values,
            status:"readonly"
        });
        $questionEvent.init();
    }

    surveyStageQuest.init01 = function(){
        var params = { domId:"surveyStageRecord01" };
        $surveyStageRecordServers.ajaxQuest(ajaxQuestCallBack,params);
    }
    surveyStageQuest.init02 = function(){
        var params = { domId:"surveyStageRecord02" };
        $surveyStageRecordServers.ajaxQuest(ajaxQuestCallBack,params);
    }
    surveyStageQuest.init03 = function(){
        var params = { domId:"surveyStageRecord03" };
        $surveyStageRecordServers.ajaxQuest(ajaxQuestCallBack,params);
    }
    surveyStageQuest.init04 = function(){
        var params = { domId:"surveyStageRecord04" };
        $surveyStageRecordServers.ajaxQuest(ajaxQuestCallBack,params);
    }
    surveyStageQuest.init05 = function(){
        var params = { domId:"surveyStageRecord05" };
        $surveyStageRecordServers.ajaxQuest(ajaxQuestCallBack,params);
    }

    return surveyStageQuest;
});